.dan-page {
  width: 100vw;
  min-height: 100vh;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

/* 标签页导航 */
.tab-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.tab-list {
  display: flex;
  gap: 24px;
}

.tab-item {
  font-size: 16px;
  color: #666;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.tab-item.active {
  color: #1890ff;
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1890ff;
}

.order-record {
  font-size: 14px;
  color: #1890ff;
  cursor: pointer;
}

/* 主内容区域 */
.main-content {
  display: flex;
  height: calc(100vh - 140px);
}

/* 左侧分类栏 */
.category-sidebar {
  width: 80px;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  padding: 8px 0;
}

.category-item {
  padding: 12px 8px;
  font-size: 12px;
  color: #666;
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid #f8f8f8;
  transition: all 0.3s;
}

.category-item.active {
  background: #e6f7ff;
  color: #1890ff;
  font-weight: 600;
}

/* 右侧产品列表 */
.product-list {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.product-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: flex-start;
  gap: 12px;
}

.product-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: #ff4d4f;
  margin-bottom: 8px;
}

.product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.tag.prescription {
  background: #e6f7ff;
  color: #1890ff;
}

.tag.limit {
  background: #fff2e8;
  color: #ff4d4f;
}

/* 数量控制器 */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.quantity-btn:hover:not(:disabled) {
  border-color: #1890ff;
  color: #1890ff;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  min-width: 20px;
  text-align: center;
}

/* 底部汇总栏 */
.bottom-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.summary-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selected-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
}

.count-icon {
  font-size: 16px;
}

.total-amount {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.submit-btn {
  width: 120px;
  height: 44px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

/* 水印 */
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 24px;
  color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 375px) {
  .category-sidebar {
    width: 70px;
  }
  
  .product-card {
    padding: 12px;
  }
  
  .product-image {
    width: 50px;
    height: 50px;
  }
  
  .product-name {
    font-size: 13px;
  }
  
  .product-description {
    font-size: 11px;
  }
  
  .product-price {
    font-size: 15px;
  }
}

